<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="cn">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" cmvn ontent="width=device-width, initial-scale=1">

    <title>超级无敌的APP商店| </title>

    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">

    <link href="${pageContext.request.contextPath}/css/custom.min.css" rel="stylesheet">
    
    <script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
    <style>
      #btn{
        height: 25px;
        padding: 0 5px;
      }
      /*th,td{*/
      /*  border-top: 0px;*/
      /*}*/
    </style>
  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="navbar nav_title" style="border: 0;">
              <a href="index.html" class="site_title"> <span>超级无敌的APP软件商店</span></a>
            </div>

            <div class="clearfix"></div>

            <!-- menu profile quick info -->
            <div class="profile">
              <div class="profile_pic">
                <img src="${pageContext.request.contextPath}/img/img.jpg" alt="..." class="img-circle profile_img">
              </div>
              <div class="profile_info">
                <span>Welcome,</span>
                <h2>刘大帅</h2>
              </div>
            </div>
            <!-- /menu profile quick info -->

            <br />

            <!-- sidebar menu -->
            <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
              <div class="menu_section">

                <ul class="nav side-menu">
                  <li>

                  </li>
                  <li><a><i class="fa fa-home"></i> APP客户管理 <span class="fa fa-chevron-down"></span></a>

                  </li>
                  <li><a><i class="fa fa-edit"></i> APP应用管理 <span class="fa fa-chevron-down"></span></a>
                  </li>
                </ul>
              </div>

            </div>
            <!-- /sidebar menu -->

            <!-- /menu footer buttons -->
            <div class="sidebar-footer hidden-small">
              <a data-toggle="tooltip" data-placement="top" title="Settings">
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="FullScreen">
                <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="Lock">
                <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="Logout">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
              </a>
            </div>
            <!-- /menu footer buttons -->
          </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
          <div class="nav_menu">
            <nav>
              <div class="nav toggle">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
              </div>

              <ul class="nav navbar-nav navbar-right">
                <li class="">
                  <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <img src="${pageContext.request.contextPath}/img/img.jpg" alt="">刘大帅
                    <span class=" fa fa-angle-down"></span>
                  </a>
                  <ul class="dropdown-menu dropdown-usermenu pull-right">
                    <li><a href="javascript:;"> Profile</a></li>
                    <li>
                      <a href="javascript:;">
                        <span class="badge bg-red pull-right">50%</span>
                        <span>Settings</span>
                      </a>
                    </li>
                    <li><a href="javascript:;">Help</a></li>
                    <li><a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
                  </ul>
                </li>

                <li role="presentation" class="dropdown">
                  <a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false">
                    <i class="fa fa-envelope-o"></i>
                    <span class="badge bg-green">6</span>
                  </a>
                  <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
                    <li>
                      <a>
                        <span class="image"><img src="" alt="Profile Image" /></span>
                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                      </a>
                    </li>
                    <li>
                      <a>
                        <span class="image"><img src="${pageContext.request.contextPath}/img/img.jpg" alt="Profile Image" /></span>
                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                      </a>
                    </li>
                    <li>
                      <a>
                        <span class="image"><img src="${pageContext.request.contextPath}/img/img.jpg" alt="Profile Image" /></span>
                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                      </a>
                    </li>
                    <li>
                      <a>
                        <span class="image"><img src="${pageContext.request.contextPath}/img/img.jpg" alt="Profile Image" /></span>
                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                      </a>
                    </li>
                    <li>
                      <div class="text-center">
                        <a>
                          <strong>See All Alerts</strong>
                          <i class="fa fa-angle-right"></i>
                        </a>
                      </div>
                    </li>
                  </ul>
                </li>
              </ul>
            </nav>
          </div>
        </div>
        <!-- /top navigation -->


        <!-- page content -->
        <div class="right_col" role="main">

          <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
              <div class="x_panel">
                <div class="x_title">
                  <h2>软件详情<small>您的软件详情</small></h2>

                  <div class="clearfix">
                    <a class="btn btn-primary col-md-offset-8 col-sm-offset-6 col-xs-offset-4"  href="${pageContext.request.contextPath}/app_info/show_app">返回首页</a>
                  </div>
                </div>

                <div class="col-md-8 col-sm-8 col-xs-12" class="x_content">

                  <table  class="table">
                    <thead>
                      <th>LOGO</th>
                      <th><img src="${appInfo.logoPicPath}" alt=""></th>
                    </thead>
                    <tbody>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">软件名称</td>
                      <td style="border-top: 0px">${appInfo.softwareName}</td>
                    </tr>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">支持的系统</td>
                      <td style="border-top: 0px">${appInfo.supportROM}</td>
                    </tr>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">软件语言</td>
                      <td style="border-top: 0px">${appInfo.interfaceLanguage}</td>
                    </tr>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">所属撇捺沟通</td>
                      <td style="border-top: 0px">${appInfo.platformName}</td>
                    </tr>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">文件名称</td>
                      <td style="border-top: 0px">${appInfo.APKName}</td>
                    </tr>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">最新版本</td>
                      <td style="border-top: 0px">${appInfo.appVersion.versionNo}</td>
                    </tr>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">一级分类</td>
                      <td style="border-top: 0px">${appInfo.categoryLevel1Name}</td>
                    </tr>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">二级分类</td>
                      <td style="border-top: 0px">${appInfo.categoryLevel2Name}</td>
                    </tr>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">三级分类</td>
                      <td style="border-top: 0px">${appInfo.categoryLevel3Name}</td>
                    </tr>
                    <tr>
                      <th style="border-top: 0px"></th>
                      <td style="border-top: 0px">简介</td>
                      <td style="border-top: 0px;width: 300px">${appInfo.appInfo}</td>
                    </tr>




                    </tbody>
                  </table>

                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>新的版本信息 <small>期待新版本的发布</small></h2>
                    <div class="col-md-offset-10 col-xs-offset-8"><a  class="btn btn-danger" href="${pageContext.request.contextPath}/app_version/save_new_version/${appInfo.id}">新版本</a></div>

                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <ul class="dropdown-menu" role="menu">
                          <li><a href="#">Settings 1</a>
                          </li>
                          <li><a href="#">Settings 2</a>
                          </li>
                        </ul>
                      </li>
                      <li><a class="close-link"><i class="fa fa-close"></i></a>
                      </li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <table class="table table-hover">
                      <thead>
                      <tr>
                        <th>#</th>
                        <th>版本号</th>
                        <th>版本描述</th>
                        <th>文件名</th>
                        <th>下载地址</th>
                        <th>发布状态</th>
                      </tr>
                      </thead>
                      <tbody>
                      <c:forEach items="${appVersions}" var="appVersion" varStatus="s">
                      <tr>
                        <th scope="row">${s.count}</th>
                        <td>${appVersion.versionNo}</td>
                        <td>${appVersion.versionInfo}</td>
                        <td>${appVersion.apkFileName}</td>
                        <td><a href="${pageContext.request.contextPath}/${appVersion.downloadLink}">下载</a></td>
                        <td>${appVersion.publishStatusName}</td>
                      </tr>
                      </c:forEach>

                      </tbody>
                    </table>

                  </div>
                </div>
              </div>
            </div>



          </div>


        </div>

        <footer>
          <div class="pull-right">
            APP管理系统 <a href="https://www.kgc.cn">北大青鸟课工场</a>
          </div>
          <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
      </div>
    </div>
  </body>
</html>
